package com.tanovo.service;

import com.tanovo.bo.SwithcDataInfoBo;
import com.tanovo.bo.TokenRequest;
import com.tanovo.domain.OauthClientToken;

public interface IOauthClientTokenService  {
    /**
     * clientid + userid  获取数据库token
     * @return
     */
    OauthClientToken getOauthClientToken(TokenRequest tokenRequest);

    void saveToken(OauthClientToken oauthClientToken);

    OauthClientToken getByToken(String token);


    void deleteToken(OauthClientToken clientToken);

    void swithcDataInfo(SwithcDataInfoBo swithcDataInfoBo);

    void updateToken(OauthClientToken clientToken);
}
